/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jboss.fuse.examples.cxf.jaxws;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class HelloWorldImpl implements HelloWorld {

    public String sayHi(String name) {
        return "Hello " + name;
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public Person getPerson(String name) {
        Person p = new Person();
        p.setName(name);
        return p;
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public List<Person> getPersonList(List<String> name) {
        ArrayList<Person> l = new ArrayList<Person>();

        for (String s : name) {
            Person p = new Person();
            p.setName(s);
            l.add(p);
        }
        return l;
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public PersonArray getPersonArray(List<String> names) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

}
